import request from '@/utils/request'

export function getUserInfo() {
  return request({
    url: '/api/student/my-profile',
    method: 'get'
  })
}

export function updateProfile(data) {
  return request({
    url: '/api/student/my-profile',
    method: 'put',
    data
  })
}

export function updatePassword(data) {
  return request({
    url: '/api/student/my-profile/password',
    method: 'put',
    data
  })
}

export function uploadAvatar(data) {
  return request({
    url: '/api/student/my-profile/avatar',
    method: 'post',
    data
  })
}

// ... 其他 API 方法保持不变，只是修改路径前缀为 /api/student 